﻿<div class="col-md-4 col-md-offset-4" login-directive>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">Please sign in</h3>
        </div>
        <div class="panel-body">
            <form accept-charset="UTF-8" role="form" name="form">
                <fieldset>
                    <div class="form-group">
                        <input class="form-control" placeholder="E-mail" name="email" type="text" ng-model="credentials.UserName" required>
                    </div>
                    <div class="form-group">
                        <input class="form-control" placeholder="Password" name="password" type="password" value="" ng-model="credentials.Password" required>
                    </div>
                    <div class="checkbox">
                        <label>
                            <input name="remember" type="checkbox" value="Remember Me" ng-model="credentials.RememberMe"> Remember Me
                        </label>
                    </div>
                    <p class="text-danger" ng-show="message">{{message}}</p>
                    <input class="btn btn-lg btn-success btn-block" ng-click="login()" ng-disabled="form.$invalid" type="submit" value="Login">
                </fieldset>
            </form>
        </div>
    </div>
</div>